package me.zhengjie.modules.rest.enterprise;

import cn.hutool.core.date.DateTime;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.AnonymousAccess;
import me.zhengjie.modules.domain.ApiBatch;
import me.zhengjie.modules.domain.Batch;
import me.zhengjie.modules.domain.enterprise.EnterpriseInformation;
import me.zhengjie.modules.domain.enterprise.EnterpriseShareholders;
import me.zhengjie.modules.service.*;
import me.zhengjie.modules.utils.Contents;
import me.zhengjie.modules.utils.JsonUtils;
import me.zhengjie.modules.utils.ReturnObject;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.*;

import java.util.Date;
import java.util.List;

@Api(tags ="企业股东信息API")
@RestController
@RequestMapping("/entSha")
@RequiredArgsConstructor
public class EnterpriseShaController {

    private final EnterpriseShaService enterpriseShaService;

    private final ApiService apiService;

    private final ApiBatchService apiBatchService;

    private final BatchService batchService;

    private final EnterpriseInfService enterpriseInfService;


    @ApiOperation("根据企业名称查询股东信息")
    @AnonymousAccess
    @GetMapping("/queryEnterpriseShaByName")
    public List<EnterpriseShareholders> queryEnterpriseShaByName(String name){
        return enterpriseShaService.queryEnterpriseShaByName(name);
    }

}

